package com.googlecode.autopp;

/**
 * Context for handling creating new object. It holds destination type and
 * nesting number.
 */
public class ObjectContext<T> {

    /**
     * Constructor.
     * 
     * @param clazz Type of created object.
     * @param step Nesting number.
     */
    public ObjectContext(Class<T> clazz, int step) {
        this.clazz = clazz;
        this.step = step;
    }

    private Class<T> clazz;
    private int step;

    public Class<T> getClazz() {
        return clazz;
    }

    public int getStep() {
        return step;
    }

}
